<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>鼠标事件对象</title>
    <style>
        body {
            height: 3000px;
        }
    </style>

</head>

<body>




</body>
<script>
    document.addEventListener('click', function(e) {
        //以客户端可视界面的绝对坐标
        console.log('坐标(' + e.clientX + ',' + e.clientY + ')');
        //以整个页面的绝对坐标
        console.log('坐标(' + e.pageX + ',' + e.pageY + ')');
    })
</script>

</html>